using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PuzzleDeluxe.bamboo
{
    public class Score
    {
        public long time;
        public int count;

        public Score(long time, int count)
        {
            // TODO: Complete member initialization
            this.time = time;
            this.count = count;
        }

        public int Compare(Score anotherScore)
        {

            if (this.time < anotherScore.time)
            {
                return 1;
            }
            else
            {
                if (this.time > anotherScore.time)
                {
                    return (-1);
                }
                else
                {
                    if (this.count < anotherScore.count)
                    {
                        return 1;
                    }
                    else
                    {
                        if (this.count > anotherScore.count)
                        {
                            return (-1);
                        }
                        else
                        {
                            return 0;
                        }
                    }

                }

            }
        }

    }
}
